package com.infore.operation.mapper;

import com.infore.operation.entity.Equip;
import com.infore.operation.entity.PositionStation;
import com.infore.operation.entity.Station;
import java.util.List;
import java.util.ListIterator;

import org.apache.ibatis.annotations.Param;

/**
 * @author:wk
 * @date:Created in 16:10 2018\4\16 0016
 */
public interface StationMapper {

    List<Station> queryStationByUserId(@Param("userId")String userId);

    List<Equip> queryEquipBySId(@Param("stationId")String stationId);

    List<PositionStation> queryAllStationByuserId(@Param("userId")String userId,@Param("opId")Integer opId,@Param("branchId")Integer branchId,@Param("postId")Integer postId,@Param("roleId")Integer roleId,@Param("keyword")String keyword);

    List<PositionStation> queryNearStation(@Param("postId")Integer postId,@Param("userId")String userId,@Param("opId")Integer opId,@Param("branchId")Integer branchId,
                                           @Param("minLat")String minLat,@Param("maxLat")String maxLat,@Param("minLng")String minLng,@Param("maxLng")String maxLng,@Param("lnt")String lnt,@Param("lat")String lat);

    void updateEquip(@Param("code")String code,@Param("text")String text,@Param("buildTime")String buildTime,@Param("equipId")String equipId);
}
